﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Thumbnail.aspx.cs" Inherits="ASPNETPerformance._03_Image.Thumbnail"
    MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2>
        生成缩略图</h2>
    <p>
        <b>商品详情页面的图片</b>
    </p>
    <table>
        <tr>
            <td>
                ~/_assets/img/asc.gif<img src="../_assets/img/asc.gif" />
                <% if ( CommonHelper.GetCookieInt( "ProductDetailHeight" ) > 0 && CommonHelper.GetCookieInt( "ProductDetailWidth" ) > 0 ) {
                %>
                <asp:Image ID="img1" runat="server" ImageUrl='<%# ImageManager.GetPictureUrl( "asc.gif", CommonHelper.GetCookieInt( "ProductDetailHeight" ) , CommonHelper.GetCookieInt( "ProductDetailWidth" ), false ) %>' />
                <% } %>
            </td>
            <td>
                ~/_assets/img/asc.gif<img src="../_assets/img/feed-icon-28x28.png" />
                <% if ( CommonHelper.GetCookieInt( "ProductDetailHeight" ) > 0 && CommonHelper.GetCookieInt( "ProductDetailWidth" ) > 0 ) {
                %>
                <asp:Image ID="Image1" runat="server" ImageUrl='<%# ImageManager.GetPictureUrl( "feed-icon-28x28.png", CommonHelper.GetCookieInt( "ProductDetailHeight" ) , CommonHelper.GetCookieInt( "ProductDetailWidth" ), false ) %>' />
                <% } %>
            </td>
        </tr>
    </table>
    <p>
        <b>购物车的图片</b>
    </p>
    <table>
        <tr>
            <td>
                ~/_assets/img/asc.gif<img src="../_assets/img/asc.gif" />
                <% if ( CommonHelper.GetCookieInt( "ShoppingCartItemHeight" ) > 0 && CommonHelper.GetCookieInt( "ShoppingCartItemWidth" ) > 0 ) {
                %>
                <asp:Image ID="Image2" runat="server" ImageUrl='<%# ImageManager.GetPictureUrl( "asc.gif", CommonHelper.GetCookieInt( "ShoppingCartItemHeight" ) , CommonHelper.GetCookieInt( "ShoppingCartItemWidth" ), false ) %>' />
                <% } %>
            </td>
            <td>
                ~/_assets/img/asc.gif<img src="../_assets/img/feed-icon-28x28.png" />
                <% if ( CommonHelper.GetCookieInt( "ShoppingCartItemHeight" ) > 0 && CommonHelper.GetCookieInt( "ShoppingCartItemWidth" ) > 0 ) {
                %>
                <asp:Image ID="Image3" runat="server" ImageUrl='<%# ImageManager.GetPictureUrl( "feed-icon-28x28.png", CommonHelper.GetCookieInt( "ShoppingCartItemHeight" ) , CommonHelper.GetCookieInt( "ShoppingCartItemWidth" ), false ) %>' />
                <% } %>
            </td>
        </tr>
    </table>
</asp:Content>
